// token
const TokenKey = 'Admin-Token'

export function getToken () {
  return sessionStorage.getItem(TokenKey)
}

export function setToken (token) {
  return sessionStorage.setItem(TokenKey, token)
}

export function removeToken () {
  return sessionStorage.removeItem(TokenKey)
}

// 用户id
const UserIdKey = 'Admin-UserId'

export function getUserId () {
  return sessionStorage.getItem(UserIdKey)
}

export function setUserId (userId) {
  return sessionStorage.setItem(UserIdKey, userId)
}

export function removeUserId () {
  return sessionStorage.removeItem(UserIdKey)
}

// 角色id
const RoleIdKey = 'Admin-RoleId'

export function getRoleId () {
  return sessionStorage.getItem(RoleIdKey)
}

export function setRoleId (roleId) {
  return sessionStorage.setItem(RoleIdKey, roleId)
}

export function removeRoleId () {
  return sessionStorage.removeItem(RoleIdKey)
}

// 用户名
const UserNameKey = 'Admin-UserName'

export function getUserName () {
  return sessionStorage.getItem(UserNameKey)
}

export function setUserName (userName) {
  return sessionStorage.setItem(UserNameKey, userName)
}

export function removeUserName () {
  return sessionStorage.removeItem(UserNameKey)
}

// 账号人名
const NameKey = 'Admin-Name'

export function getName () {
  return sessionStorage.getItem(NameKey)
}

export function setName (name) {
  return sessionStorage.setItem(NameKey, name)
}

export function removeName () {
  return sessionStorage.removeItem(NameKey)
}

// 用户联系电话
const UserTelKey = 'Admin-UserTel'

export function getUserTel () {
  return sessionStorage.getItem(UserTelKey)
}

export function setUserTel (userTel) {
  return sessionStorage.setItem(UserTelKey, userTel)
}

export function removeUserTel () {
  return sessionStorage.removeItem(UserTelKey)
}

// 用户地址省份名
const ProvinceNameKey = 'Admin-ProvinceName'

export function getProvinceName () {
  return sessionStorage.getItem(ProvinceNameKey)
}

export function setProvinceName (provinceName) {
  return sessionStorage.setItem(ProvinceNameKey, provinceName)
}

export function removeProvinceName () {
  return sessionStorage.removeItem(ProvinceNameKey)
}

// 用户地址省份代码
const ProvinceCodeKey = 'Admin-ProvinceCode'

export function getProvinceCode () {
  return sessionStorage.getItem(ProvinceCodeKey)
}

export function setProvinceCode (provinceCode) {
  return sessionStorage.setItem(ProvinceCodeKey, provinceCode)
}

export function removeProvinceCode () {
  return sessionStorage.removeItem(ProvinceCodeKey)
}

// 用户地址城市名
const CityNameKey = 'Admin-CityName'

export function getCityName () {
  return sessionStorage.getItem(CityNameKey)
}

export function setCityName (cityName) {
  return sessionStorage.setItem(CityNameKey, cityName)
}

export function removeCityName () {
  return sessionStorage.removeItem(CityNameKey)
}

// 用户地址城市代码
const CityCodeKey = 'Admin-CityCode'

export function getCityCode () {
  return sessionStorage.getItem(CityCodeKey)
}

export function setCityCode (cityCode) {
  return sessionStorage.setItem(CityCodeKey, cityCode)
}

export function removeCityCode () {
  return sessionStorage.removeItem(CityCodeKey)
}

// 用户地址地区名
const AreaNameKey = 'Admin-AreaName'

export function getAreaName () {
  return sessionStorage.getItem(AreaNameKey)
}

export function setAreaName (areaName) {
  return sessionStorage.setItem(AreaNameKey, areaName)
}

export function removeAreaName () {
  return sessionStorage.removeItem(AreaNameKey)
}

// 用户地址地区代码
const AreaCodeKey = 'Admin-AreaCode'

export function getAreaCode () {
  return sessionStorage.getItem(AreaCodeKey)
}

export function setAreaCode (areaCode) {
  return sessionStorage.setItem(AreaCodeKey, areaCode)
}

export function removeAreaCode () {
  return sessionStorage.removeItem(AreaCodeKey)
}

// 用户角色类型
const RoleTypeKey = 'Admin-RoleType'

export function getRoleType () {
  return sessionStorage.getItem(RoleTypeKey)
}

export function setRoleType (roleType) {
  return sessionStorage.setItem(RoleTypeKey, roleType)
}

export function removeRoleType () {
  return sessionStorage.removeItem(RoleTypeKey)
}

// 办事处类型
const OfficeTypeKey = 'Admin-OfficeType'

export function getOfficeType () {
  return sessionStorage.getItem(OfficeTypeKey)
}

export function setOfficeType (officeType) {
  return sessionStorage.setItem(OfficeTypeKey, officeType)
}

export function removeOfficeType () {
  return sessionStorage.removeItem(OfficeTypeKey)
}

// 办事处ID
const OfficeIdKey = 'Admin-OfficeId'

export function getOfficeId () {
  return sessionStorage.getItem(OfficeIdKey)
}

export function setOfficeId (officeId) {
  return sessionStorage.setItem(OfficeIdKey, officeId)
}

export function removeOfficeId () {
  return sessionStorage.removeItem(OfficeIdKey)
}

// 登录之前的url
const PreUrlKey = 'Admin-PreUrl'

export function getPreUrl () {
  return sessionStorage.getItem(PreUrlKey)
}

export function setPreUrl (preUrl) {
  return sessionStorage.setItem(PreUrlKey, preUrl)
}

export function removePreUrl () {
  return sessionStorage.removeItem(PreUrlKey)
}

// 办事处省份名
const OfficeProvinceKey = 'Admin-OfficeProvince'

export function getOfficeProvince () {
  return sessionStorage.getItem(OfficeProvinceKey)
}

export function setOfficeProvince (officeProvince) {
  return sessionStorage.setItem(OfficeProvinceKey, officeProvince)
}

export function removeOfficeProvince () {
  return sessionStorage.removeItem(OfficeProvinceKey)
}

// 办事处省份代码
const OfficeProvinceCodeKey = 'Admin-OfficeProvinceCode'

export function getOfficeProvinceCode () {
  return sessionStorage.getItem(OfficeProvinceCodeKey)
}

export function setOfficeProvinceCode (officeProvinceCode) {
  return sessionStorage.setItem(OfficeProvinceCodeKey, officeProvinceCode)
}

export function removeOfficeProvinceCode () {
  return sessionStorage.removeItem(OfficeProvinceCodeKey)
}

// 办事处地市名
const OfficeCityKey = 'Admin-OfficeCity'

export function getOfficeCity () {
  return sessionStorage.getItem(OfficeCityKey)
}

export function setOfficeCity (officeCity) {
  return sessionStorage.setItem(OfficeCityKey, officeCity)
}

export function removeOfficeCity () {
  return sessionStorage.removeItem(OfficeCityKey)
}

// 办事处地市代码
const OfficeCityCodeKey = 'Admin-OfficeCityCode'

export function getOfficeCityCode () {
  return sessionStorage.getItem(OfficeCityCodeKey)
}

export function setOfficeCityCode (officeCityCode) {
  return sessionStorage.setItem(OfficeCityCodeKey, officeCityCode)
}

export function removeOfficeCityCode () {
  return sessionStorage.removeItem(OfficeCityCodeKey)
}

// 外包商类型
const OutsourceTypeKey = 'Admin-OutsourceType'

export function getOutsourceType () {
  return sessionStorage.getItem(OutsourceTypeKey)
}

export function setOutsourceType (outsourceTypeKey) {
  return sessionStorage.setItem(OutsourceTypeKey, outsourceTypeKey)
}

export function removeOutsourceType () {
  return sessionStorage.removeItem(OutsourceTypeKey)
}

// 外包商省份名
const OutsourceProvinceKey = 'Admin-OutsourceProvince'

export function getOutsourceProvince () {
  return sessionStorage.getItem(OutsourceProvinceKey)
}

export function setOutsourceProvince (outsourceProvince) {
  return sessionStorage.setItem(OutsourceProvinceKey, outsourceProvince)
}

export function removeOutsourceProvince () {
  return sessionStorage.removeItem(OutsourceProvinceKey)
}

// 外包商省份代码
const OutsourceProvinceCodeKey = 'Admin-OutsourceProvinceCode'

export function getOutsourceProvinceCode () {
  return sessionStorage.getItem(OutsourceProvinceCodeKey)
}

export function setOutsourceProvinceCode (outsourceProvinceCode) {
  return sessionStorage.setItem(OutsourceProvinceCodeKey, outsourceProvinceCode)
}

export function removeOutsourceProvinceCode () {
  return sessionStorage.removeItem(OutsourceProvinceCodeKey)
}

// 外包商地市名
const OutsourceCityKey = 'Admin-OutsourceCity'

export function getOutsourceCity () {
  return sessionStorage.getItem(OutsourceCityKey)
}

export function setOutsourceCity (outsourceCity) {
  return sessionStorage.setItem(OutsourceCityKey, outsourceCity)
}

export function removeOutsourceCity () {
  return sessionStorage.removeItem(OutsourceCityKey)
}

// 外包商地市代码
const OutsourceCityCodeKey = 'Admin-OutsourceCityCode'

export function getOutsourceCityCode () {
  return sessionStorage.getItem(OutsourceCityCodeKey)
}

export function setOutsourceCityCode (outsourceCityCode) {
  return sessionStorage.setItem(OutsourceCityCodeKey, outsourceCityCode)
}

export function removeOutsourceCityCode () {
  return sessionStorage.removeItem(OutsourceCityCodeKey)
}

// 外包商id
const OutsourceIdKey = 'Admin-OutsourceId'

export function getOutsourceId () {
  return sessionStorage.getItem(OutsourceIdKey)
}

export function setOutsourceId (outsourceId) {
  return sessionStorage.setItem(OutsourceIdKey, outsourceId)
}

export function removeOutsourceId () {
  return sessionStorage.removeItem(OutsourceIdKey)
}

// 工厂id
const FactoryIdKey = 'Admin-FactoryId'

export function getFactoryId () {
  return sessionStorage.getItem(FactoryIdKey)
}

export function setFactoryId (factoryId) {
  return sessionStorage.setItem(FactoryIdKey, factoryId)
}

export function removeFactoryId () {
  return sessionStorage.removeItem(FactoryIdKey)
}
